package com.aikon.wht.naming;

import com.aikon.wht.concurrent.TestOfConcurrent;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.util.Properties;

/**
 * @author haitao.wang
 */
public class TestOfNaming {

    public static void main(String[] args) throws NamingException {
        InitialContext initCtx = new InitialContext();
        Properties property = new Properties();
        property.setProperty("name", String.valueOf(TestOfConcurrent.class));
        Context ctx = (Context) initCtx.lookup("java:com/aikon/wht/concurrent/TestOfConcurrent");

    }
}
